<!doctype html>
<html lang="{$app->language}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$app->charset}" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width" />
<meta name="csrf-param" content="{$app->request->csrfParam}">
<meta name="csrf-token" content="{$app->request->csrfToken}">
<!--remove underline for edge-->
<meta name="format-detection" content="telephone=no">
<meta name="author" content="ShopWind" />
<meta name="generator" content="ShopWind" />
<meta name="copyright" content="ShopWind Inc. All Rights Reserved" />

<title>{$page.title}</title>
<meta name="Keywords" content="{$page.keywords}" />
<meta name="Description" content="{$page.description}" />

<link type="text/css" href="{res file='css/header.css'}" rel="stylesheet" />
<link type="text/css" href="{res file='css/main.css'}" rel="stylesheet" />
<link type="text/css" href="{res file='css/footer.css'}" rel="stylesheet" />

<script type="text/javascript">
var HOME_URL = "{$homeUrl}";
var SITE_URL = "{$siteUrl}";
var PRICE_FORMAT = "{$priceFormat}";
var ENABLE_PRETTY = "{$enablePretty}";
</script>
<script type="text/javascript" src='{url route="{$app->controller->id}/jslang"}' charset="{$app->charset}"></script>
<script type="text/javascript" src="{lib file='jquery-1.11.1.js'}" charset="{$app->charset}"></script>
{$_head_tags|default}
<!--<editmode></editmode>-->
</head>
<body id="page-layout-{$app->controller->id|default:'default'}-{$app->controller->action->id|default:'index'}">
<!--{if $index}-->
<div class="top-ads" area="top-ads" widget_type="area">
	{widgets page='index' area='top-ads'}
</div>
<!--{/if}-->
<div id="site-nav" class="w-full">
   <div class="shoptop w clearfix">
      <div class="login_info clearfix">
         <span class="ml10" >您好, </span>
         {if $visitor.userid}
         <!-- <img class="float-left" src="{$visitor.portrait|url_format}" width="24" height="24" /> -->
         <a class="blue" href="{url route='user/index'}">{$visitor.username}</a>
         <a class="ml5" href="{url route='user/logout'}">{$lang.logout}</a>
         {else}
         <a class="red" href="{url route='user/login'}">请登录</a>
         {/if}
      </div>
      <ul class="quick-menu">
        {if !$index}<li class="home"><a href="{$siteUrl}">{$lang.back_home}</a></li>{/if}
        <li><a href="{url route='buyer_order/index'}">我的订单</a></li>
        <li><a href="{url route='my_favorite/index'}">我的收藏</a></li>
        <li><a href="{url route='my_coupon/index'}">我的优惠券</a></li>
        <li><a href="{url route='my_integral/index'}">我的积分</a></li>
        <li><a class="red" href="{url route='seller/index'}">商家管理</a></li>
        <li><a href="{url route='apply/index'}" style="border-right: 0; padding-right:0;">商家入驻</a></li>
     </ul>
   </div>
</div>